<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Life Runner: Riferimenti per la classe MainWindow</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="Batteri.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Life Runner
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Il Gioco della Vita</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classi</span></a></li>
      <li><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Elenco&#160;dei&#160;tipi&#160;composti</span></a></li>
      <li><a href="classes.html"><span>Indice&#160;dei&#160;tipi&#160;composti</span></a></li>
      <li><a href="hierarchy.html"><span>Gerarchia&#160;delle&#160;classi</span></a></li>
      <li><a href="functions.html"><span>Membri&#160;dei&#160;composti</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-slots">Slot pubblici</a> &#124;
<a href="#pub-methods">Membri pubblici</a> &#124;
<a href="#pro-methods">Membri protetti</a> &#124;
<a href="#pri-slots">Slot privati</a> &#124;
<a href="#pri-attribs">Attributi privati</a> &#124;
<a href="classMainWindow-members.html">Elenco di tutti i membri</a>  </div>
  <div class="headertitle">
<div class="title">Riferimenti per la classe MainWindow</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="classMainWindow.html" title="The MainWindow class.">MainWindow</a> class.  
 <a href="classMainWindow.html#details">Continua...</a></p>

<p><code>#include &quot;<a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>&quot;</code></p>
<div class="dynheader">
Diagramma delle classi per MainWindow</div>
<div class="dyncontent">
 <div class="center">
  <img src="classMainWindow.png" usemap="#MainWindow_map" alt=""/>
  <map id="MainWindow_map" name="MainWindow_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Slot pubblici</h2></td></tr>
<tr class="memitem:addeebf60a989e926528108f71a794495"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#addeebf60a989e926528108f71a794495">load</a> ()</td></tr>
<tr class="memdesc:addeebf60a989e926528108f71a794495"><td class="mdescLeft">&#160;</td><td class="mdescRight">Carica una coltura da un file .runner.  <a href="#addeebf60a989e926528108f71a794495"></a><br/></td></tr>
<tr class="separator:addeebf60a989e926528108f71a794495"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Membri pubblici</h2></td></tr>
<tr class="memitem:a4afb0369775943e9cf891902609cb2f2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a4afb0369775943e9cf891902609cb2f2">MainWindow</a> (int, int, int, QWidget *parent=0)</td></tr>
<tr class="memdesc:a4afb0369775943e9cf891902609cb2f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Costruttore della classe <a class="el" href="classMainWindow.html" title="The MainWindow class.">MainWindow</a>.  <a href="#a4afb0369775943e9cf891902609cb2f2"></a><br/></td></tr>
<tr class="separator:a4afb0369775943e9cf891902609cb2f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae98d00a93bc118200eeef9f9bba1dba7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#ae98d00a93bc118200eeef9f9bba1dba7">~MainWindow</a> ()</td></tr>
<tr class="memdesc:ae98d00a93bc118200eeef9f9bba1dba7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decostruttore.  <a href="#ae98d00a93bc118200eeef9f9bba1dba7"></a><br/></td></tr>
<tr class="separator:ae98d00a93bc118200eeef9f9bba1dba7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Membri protetti</h2></td></tr>
<tr class="memitem:ae9a24152987af97d19e1af8ea6bd064e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#ae9a24152987af97d19e1af8ea6bd064e">closeEvent</a> (QCloseEvent *closeEvent)</td></tr>
<tr class="memdesc:ae9a24152987af97d19e1af8ea6bd064e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Funzione chiamata ogni volta che si genera un evento di chiusura.  <a href="#ae9a24152987af97d19e1af8ea6bd064e"></a><br/></td></tr>
<tr class="separator:ae9a24152987af97d19e1af8ea6bd064e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
Slot privati</h2></td></tr>
<tr class="memitem:a3b221eb47e027983c23c68cb8dc4b9a5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a3b221eb47e027983c23c68cb8dc4b9a5">play</a> (bool toggled)</td></tr>
<tr class="memdesc:a3b221eb47e027983c23c68cb8dc4b9a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gestisce il bottone playButton.  <a href="#a3b221eb47e027983c23c68cb8dc4b9a5"></a><br/></td></tr>
<tr class="separator:a3b221eb47e027983c23c68cb8dc4b9a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36838285112f056c6e8135573918f224"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a36838285112f056c6e8135573918f224">newGame</a> ()</td></tr>
<tr class="memdesc:a36838285112f056c6e8135573918f224"><td class="mdescLeft">&#160;</td><td class="mdescRight">Crea una nuova partita, eliminando l'attuale.  <a href="#a36838285112f056c6e8135573918f224"></a><br/></td></tr>
<tr class="separator:a36838285112f056c6e8135573918f224"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ba1a371fb10e731ae0926ae85efeb4f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a3ba1a371fb10e731ae0926ae85efeb4f">save</a> ()</td></tr>
<tr class="memdesc:a3ba1a371fb10e731ae0926ae85efeb4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Salva la coltura attuale su un file .runner.  <a href="#a3ba1a371fb10e731ae0926ae85efeb4f"></a><br/></td></tr>
<tr class="separator:a3ba1a371fb10e731ae0926ae85efeb4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac03d41a0c3906055917074addf64403b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#ac03d41a0c3906055917074addf64403b">closing</a> ()</td></tr>
<tr class="memdesc:ac03d41a0c3906055917074addf64403b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gestisce la chiusura del programma.  <a href="#ac03d41a0c3906055917074addf64403b"></a><br/></td></tr>
<tr class="separator:ac03d41a0c3906055917074addf64403b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06bcc3ac679ebab877652fc0d69744ea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a06bcc3ac679ebab877652fc0d69744ea">openAbout</a> ()</td></tr>
<tr class="memdesc:a06bcc3ac679ebab877652fc0d69744ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mostra informazioni sul programma.  <a href="#a06bcc3ac679ebab877652fc0d69744ea"></a><br/></td></tr>
<tr class="separator:a06bcc3ac679ebab877652fc0d69744ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Attributi privati</h2></td></tr>
<tr class="memitem:ad73ebb792869f2da3d350602210aa1fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classClosingAlert.html">ClosingAlert</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a></td></tr>
<tr class="separator:ad73ebb792869f2da3d350602210aa1fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8265ed0aa7489e3650921cd7e66c7667"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classAbout.html">About</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a8265ed0aa7489e3650921cd7e66c7667">about</a></td></tr>
<tr class="separator:a8265ed0aa7489e3650921cd7e66c7667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad33b290f10b47709d0fa21226fc568af"><td class="memItemLeft" align="right" valign="top">QSlider *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a></td></tr>
<tr class="separator:ad33b290f10b47709d0fa21226fc568af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af11121b47aedf272a8eea841db2ea125"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classColtura.html">Coltura</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a></td></tr>
<tr class="separator:af11121b47aedf272a8eea841db2ea125"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab7e734292c03ee0b8a02d3a8f826630"><td class="memItemLeft" align="right" valign="top">QMenu *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">file</a></td></tr>
<tr class="separator:aab7e734292c03ee0b8a02d3a8f826630"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54bc5c9fed16e60aac21c823a05d2dea"><td class="memItemLeft" align="right" valign="top">QMenu *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a54bc5c9fed16e60aac21c823a05d2dea">help</a></td></tr>
<tr class="separator:a54bc5c9fed16e60aac21c823a05d2dea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4707b7a9cd5e11a5931751a4ce19370"><td class="memItemLeft" align="right" valign="top">QPushButton *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#ad4707b7a9cd5e11a5931751a4ce19370">stepByStep</a></td></tr>
<tr class="separator:ad4707b7a9cd5e11a5931751a4ce19370"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a388bc60efd89e1e8e82bef7b305f9902"><td class="memItemLeft" align="right" valign="top">QPushButton *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a388bc60efd89e1e8e82bef7b305f9902">playButton</a></td></tr>
<tr class="separator:a388bc60efd89e1e8e82bef7b305f9902"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82d81e78c9854ceaedf5f292431719b4"><td class="memItemLeft" align="right" valign="top">QWidget *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a82d81e78c9854ceaedf5f292431719b4">central</a></td></tr>
<tr class="separator:a82d81e78c9854ceaedf5f292431719b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa7c1d62c4d44dd06e1a28c7cfa46cd2"><td class="memItemLeft" align="right" valign="top">QHBoxLayout *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#afa7c1d62c4d44dd06e1a28c7cfa46cd2">buttonLayout</a></td></tr>
<tr class="separator:afa7c1d62c4d44dd06e1a28c7cfa46cd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80f08e92412c47b1479adaa2cdaf71fa"><td class="memItemLeft" align="right" valign="top">QVBoxLayout *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a></td></tr>
<tr class="separator:a80f08e92412c47b1479adaa2cdaf71fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45c37e3589f8d00439d18e4f7bf395ea"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#a45c37e3589f8d00439d18e4f7bf395ea">dx</a></td></tr>
<tr class="separator:a45c37e3589f8d00439d18e4f7bf395ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7e9e7e3a7c147623549315c2e6dc62a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#af7e9e7e3a7c147623549315c2e6dc62a">dy</a></td></tr>
<tr class="separator:af7e9e7e3a7c147623549315c2e6dc62a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8e98c40259a17abfd01f27da2eef860"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMainWindow.html#ab8e98c40259a17abfd01f27da2eef860">playing</a></td></tr>
<tr class="separator:ab8e98c40259a17abfd01f27da2eef860"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Descrizione dettagliata</h2>
<div class="textblock"><p>The <a class="el" href="classMainWindow.html" title="The MainWindow class.">MainWindow</a> class. </p>
<p>La classe <a class="el" href="classMainWindow.html" title="The MainWindow class.">MainWindow</a> si occupa di gestione e coordinazione dei widget. Istanzia un nuovo oggetto delle classi:<br/>
 -<a class="el" href="classColtura.html" title="The Coltura class.">Coltura</a><br/>
 -<a class="el" href="classClosingAlert.html" title="The ClosingAlert class.">ClosingAlert</a><br/>
 -<a class="el" href="classAbout.html" title="The About class.">About</a><br/>
</p>
<p>La parte pubblica contiene:</p>
<ul>
<li><a class="el" href="classMainWindow.html" title="The MainWindow class.">MainWindow</a>(int x, int y, int pattern, QWidget *parent = 0), costruttore</li>
<li><a class="el" href="classMainWindow.html#ae98d00a93bc118200eeef9f9bba1dba7" title="Decostruttore.">~MainWindow()</a>, decostruttore</li>
</ul>
<p>La parte protected contiene:</p>
<ul>
<li>void <a class="el" href="classMainWindow.html#ae9a24152987af97d19e1af8ea6bd064e" title="Funzione chiamata ogni volta che si genera un evento di chiusura.">closeEvent(QCloseEvent *closeEvent)</a>, evento generato al click della "x"</li>
</ul>
<p>I private slots sono:</p>
<ul>
<li>void <a class="el" href="classMainWindow.html#a3b221eb47e027983c23c68cb8dc4b9a5" title="Gestisce il bottone playButton.">play(bool toggled)</a>, che gestisce il bottone playButton</li>
<li>void <a class="el" href="classMainWindow.html#a36838285112f056c6e8135573918f224" title="Crea una nuova partita, eliminando l&#39;attuale.">newGame()</a>, che crea una nuova partita, eliminando l'attuale</li>
<li>void <a class="el" href="classMainWindow.html#a3ba1a371fb10e731ae0926ae85efeb4f" title="Salva la coltura attuale su un file .runner.">save()</a>, che salva la coltura attuale su un file .runner</li>
<li>void <a class="el" href="classMainWindow.html#ac03d41a0c3906055917074addf64403b" title="Gestisce la chiusura del programma.">closing()</a>, che gestisce la chiusura del programma</li>
<li>void <a class="el" href="classMainWindow.html#a06bcc3ac679ebab877652fc0d69744ea" title="Mostra informazioni sul programma.">openAbout()</a>, che mostra informazioni sul programma</li>
</ul>
<p>I public slots sono:</p>
<ul>
<li>void <a class="el" href="classMainWindow.html#addeebf60a989e926528108f71a794495" title="Carica una coltura da un file .runner.">load()</a>, che carica una coltura da un file .runner</li>
</ul>
<p>La parte privata contiene:</p>
<ul>
<li>QSlider * slider</li>
<li><a class="el" href="classClosingAlert.html" title="The ClosingAlert class.">ClosingAlert</a> * closingalert</li>
<li><a class="el" href="classAbout.html" title="The About class.">About</a> * about</li>
<li><a class="el" href="classColtura.html" title="The Coltura class.">Coltura</a> * coltura</li>
<li>QMenu * file</li>
<li>QMenu * help</li>
<li>QPushButton * stepByStep</li>
<li>QPushButton * playButton</li>
<li>QHBoxLayout * buttonLayout</li>
<li>QWidget * central;</li>
<li>int dx,dy</li>
<li>bool playing </li>
</ul>

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00056">56</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>
</div><h2 class="groupheader">Documentazione dei costruttori e dei distruttori</h2>
<a class="anchor" id="a4afb0369775943e9cf891902609cb2f2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MainWindow::MainWindow </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pattern</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QWidget *&#160;</td>
          <td class="paramname"><em>parent</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Costruttore della classe <a class="el" href="classMainWindow.html" title="The MainWindow class.">MainWindow</a>. </p>
<p>Inizializza il widget <a class="el" href="classColtura.html" title="The Coltura class.">Coltura</a> e gestisce le modifiche effettuate dall'utente delle barre relative a velocità e istante di tempo. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>Larghezza della coltura </td></tr>
    <tr><td class="paramname">y</td><td>Altezza della coltura </td></tr>
    <tr><td class="paramname">pattern</td><td>Determina la disposizione iniziale delle cellule </td></tr>
    <tr><td class="paramname">parent</td><td>0 </td></tr>
  </table>
  </dd>
</dl>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00004">4</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">                                                                  :</div>
<div class="line">    QMainWindow(parent)</div>
<div class="line">{</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">file</a> = menuBar()-&gt;addMenu(tr(<span class="stringliteral">&quot;&amp;File&quot;</span>));</div>
<div class="line">    <a class="code" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">file</a>-&gt;addAction(tr(<span class="stringliteral">&quot;&amp;Nuova partita&quot;</span>),   <span class="keyword">this</span>,   SLOT(<a class="code" href="classMainWindow.html#a36838285112f056c6e8135573918f224" title="Crea una nuova partita, eliminando l&#39;attuale.">newGame</a>()  ));</div>
<div class="line">    <a class="code" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">file</a>-&gt;addAction(tr(<span class="stringliteral">&quot;&amp;Salva&quot;</span>),           <span class="keyword">this</span>,   SLOT(<a class="code" href="classMainWindow.html#a3ba1a371fb10e731ae0926ae85efeb4f" title="Salva la coltura attuale su un file .runner.">save</a>()     ));</div>
<div class="line">    <a class="code" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">file</a>-&gt;addAction(tr(<span class="stringliteral">&quot;&amp;Carica&quot;</span>),          <span class="keyword">this</span>,   SLOT(<a class="code" href="classMainWindow.html#addeebf60a989e926528108f71a794495" title="Carica una coltura da un file .runner.">load</a>()     ));</div>
<div class="line">    <a class="code" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">file</a>-&gt;addAction(tr(<span class="stringliteral">&quot;&amp;Chiudi&quot;</span>),          <span class="keyword">this</span>,   SLOT(<a class="code" href="classMainWindow.html#ac03d41a0c3906055917074addf64403b" title="Gestisce la chiusura del programma.">closing</a>()  ));</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#a54bc5c9fed16e60aac21c823a05d2dea">help</a> = menuBar()-&gt;addMenu(tr(<span class="stringliteral">&quot;&amp;Aiuto&quot;</span>));</div>
<div class="line">    <a class="code" href="classMainWindow.html#a54bc5c9fed16e60aac21c823a05d2dea">help</a>-&gt;addAction(tr(<span class="stringliteral">&quot;&amp;About&quot;</span>),          <span class="keyword">this</span>,   SLOT(<a class="code" href="classMainWindow.html#a06bcc3ac679ebab877652fc0d69744ea" title="Mostra informazioni sul programma.">openAbout</a>()     ));</div>
<div class="line"></div>
<div class="line">    QLabel * tempo = <span class="keyword">new</span> QLabel(tr(<span class="stringliteral">&quot;Timeline&quot;</span>));</div>
<div class="line">    tempo-&gt;setAlignment(Qt::AlignCenter);</div>
<div class="line">    tempo-&gt;setFixedHeight(tempo-&gt;minimumSizeHint().height());</div>
<div class="line"></div>
<div class="line">    GD1(cout&lt;&lt;<span class="stringliteral">&quot;[MainWindow::MainWindow] dimensioni della matrice: &quot;</span></div>
<div class="line">        &lt;&lt;<a class="code" href="classMainWindow.html#a45c37e3589f8d00439d18e4f7bf395ea">dx</a>&lt;&lt;<span class="stringliteral">&quot; &quot;</span>&lt;&lt;<a class="code" href="classMainWindow.html#af7e9e7e3a7c147623549315c2e6dc62a">dy</a>&lt;&lt;endl) ;</div>
<div class="line">    this-&gt;<a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a> = <span class="keyword">new</span> <a class="code" href="classColtura.html" title="The Coltura class.">Coltura</a>(<a class="code" href="classMainWindow.html#a45c37e3589f8d00439d18e4f7bf395ea">dx</a>,<a class="code" href="classMainWindow.html#af7e9e7e3a7c147623549315c2e6dc62a">dy</a>,pattern);</div>
<div class="line">    GD1(cout&lt;&lt;<span class="stringliteral">&quot;[MainWindow::MainWindow] ho creato il nuovo oggetto coltura&quot;</span></div>
<div class="line">        &lt;&lt;endl) ;</div>
<div class="line"></div>
<div class="line">    QLabel * velocita = <span class="keyword">new</span> QLabel(tr(<span class="stringliteral">&quot;Velocita`&quot;</span>));</div>
<div class="line">    velocita-&gt;setAlignment(Qt::AlignCenter | Qt::AlignBottom);</div>
<div class="line">    velocita-&gt;setFixedHeight(velocita-&gt;minimumSizeHint().height());</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a> = <span class="keyword">new</span> QSlider(Qt::Horizontal);</div>
<div class="line">    <a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>-&gt;setMinimum(<a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;<a class="code" href="classColtura.html#a1ad014cffea1ea4a39823689712afd34" title="Ritorna la velocità minima di play.">getMinTime</a>());</div>
<div class="line">    <a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>-&gt;setMaximum(<a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;<a class="code" href="classColtura.html#a3e786db46b562bb0a89937536d66ce9b" title="Ritorna la velocità massima di play.">getMaxTime</a>());</div>
<div class="line">    <a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>-&gt;setFixedHeight(<a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>-&gt;minimumSizeHint().height());</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#ad4707b7a9cd5e11a5931751a4ce19370">stepByStep</a> = <span class="keyword">new</span> QPushButton(tr(<span class="stringliteral">&quot;passo passo&quot;</span>));</div>
<div class="line">    connect(<a class="code" href="classMainWindow.html#ad4707b7a9cd5e11a5931751a4ce19370">stepByStep</a>, SIGNAL(clicked()), <a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>, SLOT(aggiorna()));</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#a388bc60efd89e1e8e82bef7b305f9902">playButton</a> = <span class="keyword">new</span> QPushButton(tr(<span class="stringliteral">&quot;play&quot;</span>));</div>
<div class="line">    <a class="code" href="classMainWindow.html#a388bc60efd89e1e8e82bef7b305f9902">playButton</a>-&gt;setCheckable(<span class="keyword">true</span>);</div>
<div class="line">    connect(<a class="code" href="classMainWindow.html#a388bc60efd89e1e8e82bef7b305f9902">playButton</a>, SIGNAL(toggled(<span class="keywordtype">bool</span>)), <span class="keyword">this</span>, SLOT(<a class="code" href="classMainWindow.html#a3b221eb47e027983c23c68cb8dc4b9a5" title="Gestisce il bottone playButton.">play</a>(<span class="keywordtype">bool</span>)));</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#afa7c1d62c4d44dd06e1a28c7cfa46cd2">buttonLayout</a> = <span class="keyword">new</span> QHBoxLayout();</div>
<div class="line">    <a class="code" href="classMainWindow.html#afa7c1d62c4d44dd06e1a28c7cfa46cd2">buttonLayout</a>-&gt;addWidget(<a class="code" href="classMainWindow.html#a388bc60efd89e1e8e82bef7b305f9902">playButton</a>);</div>
<div class="line">    <a class="code" href="classMainWindow.html#afa7c1d62c4d44dd06e1a28c7cfa46cd2">buttonLayout</a>-&gt;addWidget(<a class="code" href="classMainWindow.html#ad4707b7a9cd5e11a5931751a4ce19370">stepByStep</a>);</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a> = <span class="keyword">new</span> QVBoxLayout;</div>
<div class="line">    <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>-&gt;addWidget(tempo);</div>
<div class="line">    <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>-&gt;addWidget(<a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;<a class="code" href="classColtura.html#a7e021c0c0f5b171e2d190f15ea8fb531" title="Slider che gestisce la possibilità di tornare indietro nel tempo.">timeSlider</a>);</div>
<div class="line">    <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>-&gt;addWidget(<a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>);</div>
<div class="line">    <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>-&gt;addWidget(velocita);</div>
<div class="line">    <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>-&gt;addWidget(<a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>);</div>
<div class="line">    <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>-&gt;addLayout(<a class="code" href="classMainWindow.html#afa7c1d62c4d44dd06e1a28c7cfa46cd2">buttonLayout</a>);</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#a82d81e78c9854ceaedf5f292431719b4">central</a> = <span class="keyword">new</span> QWidget();</div>
<div class="line"></div>
<div class="line"><span class="preprocessor">#ifdef DEBUG_MODE</span></div>
<div class="line"><span class="preprocessor"></span>    <a class="code" href="classDebug.html" title="The Debug class.">Debug</a> * debug = <span class="keyword">new</span> <a class="code" href="classDebug.html" title="The Debug class.">Debug</a>();</div>
<div class="line"></div>
<div class="line">    QHBoxLayout * setting = <span class="keyword">new</span> QHBoxLayout();</div>
<div class="line">    setting-&gt;addLayout(<a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>);</div>
<div class="line">    setting-&gt;addWidget(debug);</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#a82d81e78c9854ceaedf5f292431719b4">central</a>-&gt;setLayout(setting);</div>
<div class="line"><span class="preprocessor">#else</span></div>
<div class="line"><span class="preprocessor"></span>    <a class="code" href="classMainWindow.html#a82d81e78c9854ceaedf5f292431719b4">central</a>-&gt;setLayout(<a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>);</div>
<div class="line"><span class="preprocessor">#endif</span></div>
<div class="line"><span class="preprocessor"></span></div>
<div class="line">    this-&gt;setCentralWidget(<a class="code" href="classMainWindow.html#a82d81e78c9854ceaedf5f292431719b4">central</a>);</div>
<div class="line">    <a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;resize(<a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;minimumSize());</div>
<div class="line">    this-&gt;resize(minimumSize());</div>
<div class="line"></div>
<div class="line">    <span class="comment">/*sposto il widget al centro dello schermo*/</span></div>
<div class="line">    <span class="keywordtype">int</span> x = <a class="code" href="main_8cpp.html#a76395f2680b21afc2034736269f644e8" title="distanza dei widget dal punto 0,0">screenX</a>/2 - this-&gt;sizeHint().width()/2;</div>
<div class="line">    <span class="keywordtype">int</span> y = <a class="code" href="main_8cpp.html#a8044665d55214c345872bf2b79d8e270" title="altezza dei widget dal punto 0,0">screenY</a>/2 - this-&gt;sizeHint().height()/2;</div>
<div class="line">    this-&gt;move(x,y);</div>
<div class="line">    GD2(cout&lt;&lt;<span class="stringliteral">&quot;[Starter::Starter] dimensioni this: &quot;</span>&lt;&lt;this-&gt;sizeHint().width()&lt;&lt;<span class="stringliteral">&quot;*&quot;</span></div>
<div class="line">        &lt;&lt;this-&gt;sizeHint().height());</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a> = <span class="keyword">new</span> <a class="code" href="classClosingAlert.html" title="The ClosingAlert class.">ClosingAlert</a>(x + this-&gt;sizeHint().width(), y);</div>
<div class="line">    <a class="code" href="classMainWindow.html#a8265ed0aa7489e3650921cd7e66c7667">about</a> = <span class="keyword">new</span> <a class="code" href="classAbout.html" title="The About class.">About</a>();</div>
<div class="line"></div>
<div class="line">    setWindowTitle(tr(<span class="stringliteral">&quot;Life Runner&quot;</span>));</div>
}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ae98d00a93bc118200eeef9f9bba1dba7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MainWindow::~MainWindow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Decostruttore. </p>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00086">86</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#aab7e734292c03ee0b8a02d3a8f826630">file</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#a54bc5c9fed16e60aac21c823a05d2dea">help</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#ad4707b7a9cd5e11a5931751a4ce19370">stepByStep</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#a388bc60efd89e1e8e82bef7b305f9902">playButton</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#afa7c1d62c4d44dd06e1a28c7cfa46cd2">buttonLayout</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#a80f08e92412c47b1479adaa2cdaf71fa">layout</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#a8265ed0aa7489e3650921cd7e66c7667">about</a>;</div>
<div class="line">    <span class="keyword">delete</span> <a class="code" href="classMainWindow.html#a82d81e78c9854ceaedf5f292431719b4">central</a>;</div>
<div class="line">    GD1(cout&lt;&lt;<span class="stringliteral">&quot;[MainWindow:~MainWindow] oggetto deallocato correttamente&quot;</span></div>
<div class="line">        &lt;&lt;endl);</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Documentazione delle funzioni membro</h2>
<a class="anchor" id="ae9a24152987af97d19e1af8ea6bd064e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainWindow::closeEvent </td>
          <td>(</td>
          <td class="paramtype">QCloseEvent *&#160;</td>
          <td class="paramname"><em>closeEvent</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Funzione chiamata ogni volta che si genera un evento di chiusura. </p>
<p>Apre il widget <a class="el" href="classClosingAlert.html" title="The ClosingAlert class.">ClosingAlert</a>. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">closeEvent</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00150">150</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    <a class="code" href="classMainWindow.html#ae9a24152987af97d19e1af8ea6bd064e" title="Funzione chiamata ogni volta che si genera un evento di chiusura.">closeEvent</a>-&gt;ignore();</div>
<div class="line"></div>
<div class="line">    TRACE(<span class="stringliteral">&quot;[MainWindow::closeEvent]&quot;</span>);</div>
<div class="line"></div>
<div class="line">    connect(<a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a>-&gt;<a class="code" href="classClosingAlert.html#a4beb8a37fa7796056baa866da2480393" title="Variabile che definisce i bottoni del widget.">buttons</a>,SIGNAL(accepted()),<span class="keyword">this</span>,SLOT(<a class="code" href="classMainWindow.html#ac03d41a0c3906055917074addf64403b" title="Gestisce la chiusura del programma.">closing</a>()));</div>
<div class="line">    connect(<a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a>-&gt;<a class="code" href="classClosingAlert.html#a4beb8a37fa7796056baa866da2480393" title="Variabile che definisce i bottoni del widget.">buttons</a>,SIGNAL(rejected()),<a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a>,</div>
<div class="line">            SLOT(close()));</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a>-&gt;show();</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a3b221eb47e027983c23c68cb8dc4b9a5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainWindow::play </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>toggled</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gestisce il bottone playButton. </p>
<dl class="params"><dt>Parametri</dt><dd>
  <table class="params">
    <tr><td class="paramname">toggled</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00103">103</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    <a class="code" href="classMainWindow.html#ab8e98c40259a17abfd01f27da2eef860">playing</a> = toggled;</div>
<div class="line"></div>
<div class="line">    <span class="keywordflow">if</span> (<a class="code" href="classMainWindow.html#ab8e98c40259a17abfd01f27da2eef860">playing</a> == <span class="keyword">true</span>)</div>
<div class="line">    {</div>
<div class="line">        <a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;<a class="code" href="classColtura.html#af38f66b2e7eb6372200d74bc59921a38" title="Slot che gestisce lo scorrere del tempo.">play</a>(<a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>-&gt;value());</div>
<div class="line">        connect(<a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>,SIGNAL(valueChanged(<span class="keywordtype">int</span>)),<a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>,SLOT(<a class="code" href="classMainWindow.html#a3b221eb47e027983c23c68cb8dc4b9a5" title="Gestisce il bottone playButton.">play</a>(<span class="keywordtype">int</span>)));</div>
<div class="line">    }</div>
<div class="line">    <span class="keywordflow">else</span></div>
<div class="line">    {</div>
<div class="line">        <a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;<a class="code" href="classColtura.html#af38f66b2e7eb6372200d74bc59921a38" title="Slot che gestisce lo scorrere del tempo.">play</a>(0);</div>
<div class="line">        disconnect(<a class="code" href="classMainWindow.html#ad33b290f10b47709d0fa21226fc568af">slider</a>,SIGNAL(valueChanged(<span class="keywordtype">int</span>)),<a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>,SLOT(<a class="code" href="classMainWindow.html#a3b221eb47e027983c23c68cb8dc4b9a5" title="Gestisce il bottone playButton.">play</a>(<span class="keywordtype">int</span>)));</div>
<div class="line">    }</div>
<div class="line"></div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a36838285112f056c6e8135573918f224"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainWindow::newGame </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Crea una nuova partita, eliminando l'attuale. </p>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00120">120</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    this-&gt;deleteLater();</div>
<div class="line"></div>
<div class="line">    <a class="code" href="classStarter.html" title="The Starter class.">Starter</a> * starter = <span class="keyword">new</span> <a class="code" href="classStarter.html" title="The Starter class.">Starter</a>();</div>
<div class="line">    starter-&gt;show();</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a3ba1a371fb10e731ae0926ae85efeb4f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainWindow::save </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Salva la coltura attuale su un file .runner. </p>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00128">128</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    QString s = QFileDialog::getSaveFileName(<span class="keyword">this</span>, tr(<span class="stringliteral">&quot;Salva&quot;</span>),<span class="stringliteral">&quot;saves&quot;</span>,</div>
<div class="line">                                        <span class="stringliteral">&quot;Runner file (*.runner);;all (*.*)&quot;</span>);</div>
<div class="line">    <a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;<a class="code" href="classColtura.html#a172fa185b73568240c677322f2ee7436" title="Funzionalita&#39; di salvataggio su file.">save</a>(s);</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="ac03d41a0c3906055917074addf64403b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainWindow::closing </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Gestisce la chiusura del programma. </p>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00163">163</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    this-&gt;deleteLater();</div>
<div class="line">    <a class="code" href="classMainWindow.html#ad73ebb792869f2da3d350602210aa1fc">closingalert</a>-&gt;deleteLater();</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a06bcc3ac679ebab877652fc0d69744ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void MainWindow::openAbout </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Mostra informazioni sul programma. </p>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00145">145</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    <a class="code" href="classMainWindow.html#a8265ed0aa7489e3650921cd7e66c7667">about</a>-&gt;show();</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="addeebf60a989e926528108f71a794495"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool MainWindow::load </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Carica una coltura da un file .runner. </p>

<p>Definizione alla linea <a class="el" href="mainwindow_8cpp_source.html#l00135">135</a> del file <a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a>.</p>
<div class="fragment"><div class="line">{</div>
<div class="line">    QString s = QFileDialog::getOpenFileName(<span class="keyword">this</span>, tr(<span class="stringliteral">&quot;Carica&quot;</span>),<span class="stringliteral">&quot;saves&quot;</span>,</div>
<div class="line">                                        <span class="stringliteral">&quot;Runner file (*.runner);;all (*.*&quot;</span>);</div>
<div class="line">    <span class="keywordtype">bool</span> ret = <a class="code" href="classMainWindow.html#af11121b47aedf272a8eea841db2ea125">coltura</a>-&gt;<a class="code" href="classColtura.html#a97a8ef9adf0e76cb8dcf1b2bda8a74c1" title="Funzionalita&#39; di caricamento da file.">load</a>(s);</div>
<div class="line">    GD1(cout&lt;&lt;<span class="stringliteral">&quot;[MainWindow::load] stato load: &quot;</span>&lt;&lt;ret&lt;&lt;endl;)</div>
<div class="line">    this-&gt;resize(minimumSize());</div>
<div class="line">    <span class="keywordflow">return</span> ret;</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Documentazione dei membri dato</h2>
<a class="anchor" id="ad73ebb792869f2da3d350602210aa1fc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classClosingAlert.html">ClosingAlert</a>* MainWindow::closingalert</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00119">119</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8265ed0aa7489e3650921cd7e66c7667"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classAbout.html">About</a>* MainWindow::about</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00120">120</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad33b290f10b47709d0fa21226fc568af"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QSlider* MainWindow::slider</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00121">121</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="af11121b47aedf272a8eea841db2ea125"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classColtura.html">Coltura</a>* MainWindow::coltura</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00122">122</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="aab7e734292c03ee0b8a02d3a8f826630"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QMenu* MainWindow::file</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00123">123</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="a54bc5c9fed16e60aac21c823a05d2dea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QMenu* MainWindow::help</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00124">124</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad4707b7a9cd5e11a5931751a4ce19370"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QPushButton* MainWindow::stepByStep</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00125">125</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="a388bc60efd89e1e8e82bef7b305f9902"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QPushButton* MainWindow::playButton</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00126">126</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="a82d81e78c9854ceaedf5f292431719b4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QWidget* MainWindow::central</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00127">127</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="afa7c1d62c4d44dd06e1a28c7cfa46cd2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QHBoxLayout* MainWindow::buttonLayout</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00128">128</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="a80f08e92412c47b1479adaa2cdaf71fa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QVBoxLayout* MainWindow::layout</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00129">129</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="a45c37e3589f8d00439d18e4f7bf395ea"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int MainWindow::dx</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00130">130</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="af7e9e7e3a7c147623549315c2e6dc62a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int MainWindow::dy</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00130">130</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab8e98c40259a17abfd01f27da2eef860"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool MainWindow::playing</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definizione alla linea <a class="el" href="mainwindow_8h_source.html#l00131">131</a> del file <a class="el" href="mainwindow_8h_source.html">mainwindow.h</a>.</p>

</div>
</div>
<hr/>La documentazione per questa classe è stata generata a partire dai seguenti file:<ul>
<li><a class="el" href="mainwindow_8h_source.html">mainwindow.h</a></li>
<li><a class="el" href="mainwindow_8cpp_source.html">mainwindow.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Ven 16 Nov 2012 15:59:35 per Life Runner da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.2
</small></address>
</body>
</html>
